import request from "./request";

export const getMedicalUserListAPI = (data) => {
  return request.post({ url: "/medicaluser/page", data });
};

export const addMedicalUserAPI = (data) => {
  return request.post({ url: "/medicaluser", data });
};

export const updateMedicalUserAPI = (data) => {
  return request.put({ url: "/medicaluser", data });
};

export const deleteMedicalUserAPI = (id) => {
  return request.delete({ url: `/medicaluser/${id}` });
};